home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Games / Ocean-HDinst / AddamsFamily / Install-Addams < prev    next >
Text File  |  1997-09-29  |  2KB  |  79 lines

  1.  
  2. ;----------------------------
  3.  
  4. ;try to figure out a place where the user usually installs his games
  5. (if (exists "Games:" (noreq) )
  6.     (set @default-dest "Games:")
  7.     (if (exists "SYS:Games" (noreq) )
  8.         (set @default-dest "SYS:Games")
  9.         (if (exists "Work:Games" (noreq) )
  10.             (set @default-dest "Work:Games")
  11.             (if (exists "JEUX:" (noreq) )
  12.                (set @default-dest "JEUX:")
  13.                (set @default-dest "SYS:")
  14.             )
  15.         )
  16.     )
  17. )
  18.  
  19. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  20.  
  21. (set @default-dest
  22. (askdir
  23.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  24.     (help @askdir-help)
  25.     (default @default-dest)
  26.     (disk)
  27. )
  28. )
  29.  
  30. (set #dest (tackon @default-dest @app-name))
  31.  
  32. (set #CI_unit
  33.     (askchoice
  34.         (prompt "From which disk unit do you want\nto install the game")
  35.         (help    @askoptions-help)
  36.         (choices
  37.            "DF0:"
  38.            "DF1:"
  39.            "DF2:"
  40.            "DF3:"
  41.         )
  42.     )
  43. )
  44.  
  45. (set #CI_drive ("DF%ld:" #CI_unit))
  46.  
  47. (makedir #dest
  48.     (help @makedir-help)
  49.     (infos)
  50. )
  51.  
  52. ;----------------------------
  53.  
  54. (copyfiles
  55.     (help @copyfiles-help)
  56.     (source "AddamsHD")
  57.     (dest #dest)
  58.     (infos)
  59. )
  60.  
  61.  
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "addamshd.readme")
  65.     (dest #dest)
  66.     (infos)
  67. )
  68.  
  69. (message ("\nInsert %s disk into drive %s !" @app-name #CI_drive))
  70.     (if
  71.         (= 0 (run ("disk2file %ld \"%s/Addams.d1\" SKIPROB >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  72.         ("")
  73.         (abort "\"disk2file\" must be in your PATH !")
  74.     )
  75.  
  76.  
  77. (exit)
  78.  
  79.